module.exports   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 38

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 8.8571
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
module.exports = function (grunt) {
2
    
3
    //initialize tasks configurations
4
    grunt.initConfig({
5
        exec: {
6
            install_bower: {
7
                cmd: 'bower install'
8
            }
9
        },
10
        copy: {
11
            jquery: {
12
                files: [{
13
                    expand: true,
14
                    cwd: 'bower_components/jquery/dist',
15
                    src: '**',
16
                    dest: 'demo/browser/assets/jquery'
17
                }]
18
            },
19
            bootstrap: {
20
                files: [{
21
                    expand: true,
22
                    cwd: 'bower_components/bootstrap/dist/',
23
                    src: '**',
24
                    dest: 'demo/browser/assets/bootstrap'
25
                }]
26
            }
27
        }
28
    });
29
    
30
    //register npm tasks
31
    grunt.loadNpmTasks('grunt-exec');
32
    grunt.loadNpmTasks('grunt-contrib-copy');
33
    
34
    //register tasks aliases
35
    grunt.registerTask('build', ['exec', 'copy']);
36
    grunt.registerTask('default', ['build']);
37
    
38
};
39